package com.woniuxy.cloud.userassembly.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;

import java.time.LocalDateTime;

import com.baomidou.mybatisplus.annotation.TableField;

import java.io.Serializable;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 *
 * </p>
 *
 * @author 周川雄
 * @since 2022-01-26
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("user")
@ApiModel(value = "User对象", description = "")
public class User implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "用户自增id")
    @TableId(value = "user_id", type = IdType.AUTO)
    private Integer userId;

    @ApiModelProperty(value = "用户名")
    @TableField("user_name")
    private String userName;

    @ApiModelProperty(value = "账号")
    @TableField("user_account")
    private String userAccount;

    @ApiModelProperty(value = "密码")
    @TableField("user_password")
    private String userPassword;

    @ApiModelProperty(value = "手机号")
    @TableField("user_phone")
    private String userPhone;

    @ApiModelProperty(value = "押金金额id")
    @TableField("deposit_id")
    private Integer depositId;

    @ApiModelProperty(value = "押金金额等级")
    @TableField("deposit_level")
    private Integer depositLevel;

    @ApiModelProperty(value = "默认0 正常 1删除不展示")
    @TableField("user_del")
    private Integer userDel;

    @ApiModelProperty(value = "记录新增时间")
    @TableField("raw_add_time")
    private String rawAddTime;

    @ApiModelProperty(value = "记录更新时间")
    @TableField("raw_update_time")
    private String rawUpdateTime;


    @ApiModelProperty(value = "区域Id")
    @TableField("area_id")
    private String areaId;
}
